winners = ["Homestar","King of Town","Marzipan","Strongbad"]
Place = Struct.new(:index,:name,:prize) do 
    # 可以当下标
    def to_int
        index
    end
end
first = Place.new(0,"first","Peasant's Quest game")
second = Place.new(1,"second","Limozeen Album")
third = Place.new(2,"third","Butter-da")

[first,second,third].each do |place|
    puts "In #{place.name} place,#{winners[place]}!"
    puts "You win: #{place.prize}!"
end

